package com.ddd.app.user.executor.command;

import com.ddd.domain.user.repository.UserRepository;
import com.ddd.domain.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * UserDeleteCmdExe
 *
 * @author guowm
 */
@Component
public class UserDeleteCmdExe {
    @Autowired
    private UserService userService;

    public int execute(String[] ids) {
        return userService.deleteByIds(ids);
    }
}
